proc msg:core {nick host handle arg} {
  global botnick 

  # if user is not a root user
  if {![matchattr $handle n]} {
    putquick "NOTICE $nick :\0034ERROR - Permission Denied."
    return 0
  }

  # If user is not authed
  if {![matchattr $handle A]} {
    putquick "NOTICE $nick :\0034ERROR - You need to authenticate first - Permission Denied."           
    putquick "NOTICE $nick :\00312You may authenticate yourself by typing \0033\002/msg $botnick auth <your password>\002"
    return 0
  }

  # If user acct is disabled
  # - hmm... how can the root user account be disabled?
  if {[matchattr $handle D]} {
    putquick "NOTICE $nick :\0034ERROR - Permission Denied - Access Is Disabled."
    return 0
  }

  core $nick $host $handle 
  return 0
}










